using ThingsEdge.Exchange.Contracts;

namespace Digitalmes.Application.Scada.Models;

/// <summary>
/// 工步过点请求参数。
/// </summary>
/// <param name="LineCode">线体编号</param>
/// <param name="WsCode">工位编号</param>
/// <param name="SN">SN</param>
/// <param name="PassResult">过点的状态结果, null 表示不需要结果</param>
/// <param name="Index">作业步序，从 1 开始。</param>
/// <param name="CycleTime">节拍时长</param>
/// <param name="DataList">过程数据集合</param>
public sealed record StepTaskInput(
    string LineCode,
    string WsCode,
    string SN,
    int Index,
    PassEnum? PassResult,
    double? CycleTime,
    IReadOnlyList<PayloadData> DataList);
